package com.wj.activiti.interceptor;

import org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl;
import org.activiti.engine.impl.interceptor.CommandInterceptor;

import java.util.ArrayList;
import java.util.List;

public class TestConfiguration extends ProcessEngineConfigurationImpl {
    @Override
    public CommandInterceptor createTransactionInterceptor() {
        return null;
    }

    public void initCommandInterceptors() {
        List<CommandInterceptor> list = new ArrayList<>();
        list.add(new InterceptorA());
        list.add(new InterceptorB());
        this.customPreCommandInterceptors = list;
        super.initCommandInterceptors();
    }
}
